package poo.esempi;

import java.util.Scanner;

public class BucketSort {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int b[] = new int[10];
		for (;;) {
			int x = sc.nextInt();
			sc.nextLine();
			if (x < 1 || x > b.length - 1)
				break;
			b[x]++;

		}
		for (int i = 1; i <= b.length-1; i++)
			for (int j = 0; j < b[i]; j++)
				System.out.println(i + " ");
		System.out.println();
	}

}
